Printable View
There is no flag - it's the default. Just leave out ios::binary. I think you should just use text mode.